var anc = {
    max: 0,
    home: 'test-phimsd.blogspot.com',
    post: 100,
    title: new Array(),
    url: new Array(),
    label: new Array(),
    img: {
        f: new Array(),
        i72: new Array(),
        no: 'https://dl.dropbox.com/u/80438993/picture/thumnail.png'
    },
    content: new Array(),
    snippet: new Array(),
    date: {
        d: new Array(),
        m: new Array(),
        y: new Array()
    },
    author: new Array()
};

function d_write(_0xf657x3, _0xf657x4, _0xf657x5) {
    dsrc = 'http://' + anc['home'] + '/feeds/posts/default/-/' + _0xf657x3 + '?max-results=' + _0xf657x4 + '&amp;orderby=published&amp;alt=json-in-script&amp;callback=ancdata';
    document['write']('<script src="' + dsrc + '"></script>');
    document['write']('<script>' + _0xf657x5 + '();</script>');
};

function stripHtmlTags(_0xf657x3, _0xf657x4) {
    _0xf657x3 = _0xf657x3['replace'](/<br.*?>/ig, ' ');
    return _0xf657x3['replace'](/<.*?>/ig, '')['split'](/\s+/)['slice'](0, _0xf657x4 - 1)['join'](' ');
};
numposts = anc['post'];

function ancdata(_0xf657x3) {
    maxpost = numposts <= _0xf657x3['feed']['entry']['length'] ? numposts : _0xf657x3['feed']['entry']['length'];
    anc['max'] = maxpost;
    for (var _0xf657x4 = 0; _0xf657x4 < maxpost; _0xf657x4++) {
        var _0xf657x5 = _0xf657x3['feed']['entry'][_0xf657x4];
        title = _0xf657x5['title']['$t'];
        anc['title'][_0xf657x4] = title;
        for (var _0xf657x8 = 0; _0xf657x8 < _0xf657x5['link']['length']; _0xf657x8++) {
            if ('alternate' == _0xf657x5['link'][_0xf657x8]['rel']) {
                anc['url'][_0xf657x4] = _0xf657x5['link'][_0xf657x8]['href'];
                break;
            };
        };
        var _0xf657x9 = '';
        if (_0xf657x5['category']) {
            for (_0xf657x8 = 0; _0xf657x8 < _0xf657x5['category']['length']; _0xf657x8++) {
                _0xf657x9 += '<a class="label-link" href="http://' + anc['home'] + '/search/label/' + _0xf657x5['category'][_0xf657x8]['term'] + '">' + _0xf657x5['category'][_0xf657x8]['term'] + '</a>,';
            };
        } else {
            _0xf657x9 = 'No label';
        };
        anc['label'][_0xf657x4] = _0xf657x9;
        anc['author'][_0xf657x4] = _0xf657x5['author'][0]['name']['$t'];
        _0xf657x8 = _0xf657x5['published']['$t'];
        anc['date']['d'][_0xf657x4] = _0xf657x8['split']('-')[2]['substring'](0, 2);
        anc['date']['m'][_0xf657x4] = _0xf657x8['split']('-')[1];
        anc['date']['y'][_0xf657x4] = _0xf657x8['split']('-')[0];
        anc['content'][_0xf657x4] = 'content' in _0xf657x5 ? _0xf657x5['content']['$t'] : 'summary' in _0xf657x5 ? _0xf657x5['summary']['$t'] : '';
        s = anc['content'][_0xf657x4];
        anc['snippet'][_0xf657x4] = stripHtmlTags(s, 250);
        a = s['indexOf']('<img');
        b = s['indexOf']('src="', a);
        c = s['indexOf']('"', b + 5);
        d = s['substr'](b + 5, c - b - 5);
        anc['img']['f'][_0xf657x4] = -1 != a && -1 != b && -1 != c && '' != d ? d : anc['img']['no'];
        'media$thumbnail' in _0xf657x5 ? thumburl = _0xf657x5['media$thumbnail']['url'] : thumburl = anc['img']['no'];
        anc['img']['i72'][_0xf657x4] = thumburl;
        if (_0xf657x4 == _0xf657x3['feed']['entry']['length']) {
            break;
        };
    };
};